(ns njws-agent.sql
  (:require [org.zalando.stups.friboo.system.db :refer [generate-hystrix-commands]]
            [yesql.core :refer [defqueries]]))


;; Wrap every function already defined in this namespace with another one with `cmd-` name prefix
(def default-db-config
  {:db-classname       "org.sqlite.JDBC"
   :db-subprotocol     "sqlite"
   :db-subname         "db/ws-agent.db"
   :db-user            "root"
   :db-password        "root"
   :db-init-sql        "select 1"
   :db-auto-migration? false})

(defqueries "db/queries.sql" )
(generate-hystrix-commands)